SRCS = request.c response.c net.c url.c kv.c
OBJS = $(SRCS:%.c=%.o)
all:
	gcc -c $(SRCS)
	ar r libgfw.a $(OBJS)
clean:
	rm -rf $(OBJS) libgfw.a
install:
	install -m 644 kv.h /usr/local/include
	install -m 644 gfw.h /usr/local/include
	install -m 644 libgfw.a /usr/local/lib
	ranlib /usr/local/lib/libgfw.a
test:
	gcc -o tests/kv tests/kv.c kv.c
	./tests/kv
